package com.flame.workflow.constants;

/**
 *
 *
 * @author wuxintong😺😺😺
 * @since 2023/6/6
 */
public final class TaskConstants {

    /** 节点类型：默认 */
    public static final String TASK_TYPE_DEFAULT = "8";

    /** 节点类型：开始 */
    public static final String TASK_TYPE_START = "0";

    /** 节点类型：审批 */
    public static final String TASK_TYPE_APPROVAL = "1";

    /** 节点类型：条件 */
    public static final String TASK_TYPE_CONDITION = "2";

    /** 节点类型：条件分支 */
    public static final String TASK_TYPE_CONDITION_BRANCH = "3";

    /** 节点类型：并行 */
    public static final String TASK_TYPE_PARALLEL = "4";

    /** 节点类型：并行分支 */
    public static final String TASK_TYPE_PARALLEL_BRANCH = "5";

    /** 节点类型：触发 */
    public static final String TASK_TYPE_TRIGGER = "6";

    /** 节点类型：结束 */
    public static final String TASK_TYPE_END = "9";

    /** 用户审批结果 KEY：0 - 拒绝，1 - 同意 */
    public static final String TASK_APPROVE_RESULT = "approveResult:";

    /** 审批意见 */
    public static final String TASK_APPROVE_MESSAGE = "approveMessage:";

    /** 多人审批方式： 或签 - 有 1 人同意，即通过*/
    public static final String MULTI_APPROVAL_TYPE = "multiApprovalType";

    /** 多人审批方式： 或签 - 有 1 人同意，即通过*/
    public static final String MULTI_APPROVAL_TYPE_OR_SIGN = "0";

    /** 多人审批方式： 会签 - 所有人同意，即通过*/
    public static final String MULTI_APPROVAL_TYPE_ALL_SIGN = "1";

    /** 审批拒绝方式 */
    public static final String APPROVAL_REFUSED_TYPE = "approvalRefusedType";

    /** 审批拒绝方式：直接结束流程 */
    public static final String APPROVAL_REFUSED_TYPE_FINISH = "0";

    /** 审批拒绝方式：驳回至上级节点 */
    public static final String APPROVAL_REFUSED_TYPE_RETURN_UP_NODE = "1";

    /** 审批拒绝方式：驳回至指定节点 */
    public static final String APPROVAL_REFUSED_TYPE_RETURN_SPECIFIC_NODE = "2";

    /** 驳回至指定节点ID */
    public static final String APPROVAL_REFUSED_TO_NODE_ID = "approvalRefusedToNodeId";

    /** 没被删除 */
    public static final String NOT_DELETED = "0";

    /** 已删除 */
    public static final String DELETED = "1";

    private TaskConstants() {
    }
}
